// locutor
// (c) 2008-2009, Normen Müller, normen.mueller@gmail.com  
// $Id$
package locutor.moc

import java.io.File

import scala.xml.Document

import scaup.Views._

import locutor.dg.DG

/**
 * @author <a href="mailto:normen.mueller@googlemail.com">Normen M&#xFC;ller</a>
 * @version 0.0.5 */
object M {
  def infoset(f: File): (Document, M) = (astOf(f), modelOf(f))
  
  private def astOf(f: File) = xml.parsing.ConstructingParser.fromFile(f, true).document 
  
  private def modelOf(f: File) = new M(dgOf(f))
  
  private def dgOf(f: File) = DG(f/".dep")
}

class M private [moc] (val g: DG) {
  
}
